package labox.innovation.gameserver.taskmanager;


import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import labox.innovation.gameserver.taskmanager.TaskManager.ExecutedTask;
import labox.innovation.gameserver.timer.Timer;

/**
 * @author Layane
 * 
 */
public abstract class Task {
	
	private static Logger _log = LoggerFactory.getLogger(Task.class.getName());

	public void initializate() {
		if (_log.isDebugEnabled())
			_log.debug("Task {}  inializate" , getName());
	}

	public Timer launchSpecial(ExecutedTask instance) {
		return null;
	}

	public abstract String getName();

	public abstract void onTimeElapsed(ExecutedTask task);

	public void onDestroy() {
	}
}
